package com.lijy.testfinally;

import org.junit.Test;

/**
 * @author Lijingyu on 2017/10/19.
 */
public class TestFinally {

    public static void main(String[] args) {

    }

    @Test
    public void finallyTest() {
        int i1 = 1;
        int i2 = 1;

        try {
            int i3 = i1 / i2;
            System.out.println(i3);
            return ;
        } catch (Exception e) {
            e.printStackTrace();
            return ;
        } finally {
            System.out.println("hello finally");
        }

    }

}
